package com.atguigu.gulimall.cart.service;

import com.atguigu.gulimall.cart.vo.Cart;
import com.atguigu.gulimall.cart.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @author kabuda
 * @create 2022-12-03 20:44
 */
public interface CartService {

    CartItem addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItem addCartSuccess(Long skuId);

    Cart getCart() throws ExecutionException, InterruptedException;

    public void clearCart(String cartKey);

    List<CartItem> getUserCartItems();


}
